import { createRouter,createWebHistory } from "vue-router";
import LoginVue from '@/View/SignIn.vue';
import SignUp from "@/View/SignUp.vue";
import Home from "@/View/Home.vue";

const router =createRouter({
    history:createWebHistory(),
    routes:[
        {
            path:"/signin",
            name:"SignIn",
            component:LoginVue
        },
        {
            path:"/signup",
            name:"SignUp",
            component:SignUp
        }
        ,{
            path:'/home',
            name:"Home",
            component:Home
        },
        {
            path:'/father',
            name:"father",
            component:()=>import('@/View/FatherC/Father.vue'),
            children:[
                {
                    path:'/c1',
                    name:"C1",
                    component:()=>import('@/View/FatherC/C1.vue')
                },
                {
                    path:'/c2/:name/:age',
                    name:"C2",
                    component:()=>import('@/View/FatherC/C2.vue')
                }
            ]
        }
    ]
})

export default router